package com.itsm.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itsm.entity.Process;
import com.itsm.entity.Question;
import com.itsm.service.mapper.QuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionService {
    @Autowired
    private QuestionMapper questionMapper;

    public List<Question> getAll(){
        QueryWrapper<Question> wrapper = new QueryWrapper();
        wrapper.orderByAsc("id");
        List<Question> list = questionMapper.selectList(wrapper);
        return list;
    }
}
